﻿<div ng-controller="measureUnitController">
    <form ng-submit="save()">
        <input type="text" ng-model="measureUnit.name" placeholder="Nombre" required>
        <input type="text" ng-model="measureUnit.abbreviation" size="2" placeholder="Abbrev">
        <button type="submit">Save</button>
    </form>
        Tu nombre es: {{ name }}

        <ul>
            <li ng-repeat="d in list | filter:name">
                {{ d.name }} {{ d.abbreviation }} {{d.id}}
                <a href="" ng-click="getById(d)">update</a>
                <a href="" ng-click="delete(d)">x</a>
            </li>
        </ul>
</div>